Skip to main content

Cloud Architecture Overview

IMPORTANT: How SELF Chain Cloud Worksโ€‹

What SELF Does (Not You)โ€‹

When a user signs up through the SELF Super-App, we automatically:

  1. โœ… Provision their private cloud instance
  2. โœ… Deploy their SELF Chain node
  3. โœ… Set up their private LLM
  4. โœ… Configure their decentralized storage
  5. โœ… Manage all infrastructure

Users get their cloud automatically. Developers don't provision anything.

What Developers Doโ€‹

As a developer, you:

  1. ๐Ÿ”จ Build apps that interact with user instances
  2. ๐Ÿ”จ Access user data (with permission) via APIs
  3. ๐Ÿ”จ Create experiences using their private LLM
  4. ๐Ÿ”จ Store data in their sovereign storage

You build on top of the infrastructure, you don't create it.


For Users: Your Private Cloudโ€‹

When you sign up for SELF through our Super-App, you automatically get:

Your Own Private Universeโ€‹

  • Dedicated Resources: CPU, memory, and storage just for you
  • Private AI Assistant: An LLM that learns from you and never shares your data
  • Blockchain Node: Participate in the network and earn rewards
  • Sovereign Storage: Your data, encrypted and under your control

Complete Privacyโ€‹

  • Your conversations never leave your instance
  • Your data is never accessible to SELF or other users
  • End-to-end encryption by default
  • You own your digital life

Service Tiersโ€‹

Free Tierโ€‹

  • Get started with basic resources
  • Small but capable AI model
  • 10GB storage
  • Perfect for personal use

Growth Tier ($XX/month)โ€‹

  • More powerful AI models
  • 50GB storage
  • Faster responses
  • Great for creators

Pro Tier ($XX/month)โ€‹

  • Premium AI capabilities
  • 200GB storage
  • Priority performance
  • Ideal for professionals

Enterpriseโ€‹

  • Custom resources
  • Dedicated support
  • SLA guarantees
  • Built for organizations

For Developers: Building on SELFโ€‹

You Don't Manage Infrastructureโ€‹

SELF handles:

  • โŒ Server provisioning
  • โŒ Docker containers
  • โŒ Cloud accounts
  • โŒ Resource allocation
  • โŒ Scaling
  • โŒ Monitoring

You focus on:

  • โœ… Building great apps
  • โœ… Creating user experiences
  • โœ… Integrating with user instances
  • โœ… Respecting user privacy

How to Build Apps for SELF Usersโ€‹

1. User Authenticationโ€‹

Users log in with their SELF account:

// User authorizes your app
const auth = await SELF.authenticate({
appId: 'your-app-id',
permissions: ['ai:chat', 'storage:read']
});

2. Interact with User's Private LLMโ€‹

// Chat with user's private AI (with permission)
const response = await auth.ai.chat({
message: "Help me plan my day",
context: "productivity"
});

3. Store in User's Sovereign Storageโ€‹

// Save to user's private storage (with permission)
await auth.storage.save({
key: 'app-data',
value: { preferences: {...} },
encrypted: true
});

What You Can Buildโ€‹

โœ… Apps That Enhance User's AIโ€‹

  • Custom AI personalities
  • Specialized knowledge bases
  • AI-powered tools
  • Workflow automation

โœ… Privacy-Preserving Servicesโ€‹

  • Encrypted messaging using user's instance
  • Private document analysis
  • Secure collaboration tools
  • Personal data insights

โœ… Decentralized Applicationsโ€‹

  • Social networks where users own their data
  • Content platforms with user sovereignty
  • Marketplaces with privacy
  • Gaming with persistent user state

What You Cannot Doโ€‹

โŒ Access Without Permissionโ€‹

  • Cannot read user data without explicit consent
  • Cannot use their AI without authorization
  • Cannot bypass privacy controls
  • Cannot see other users' data

โŒ Provision Infrastructureโ€‹

  • Cannot create user instances (SELF does this)
  • Cannot manage cloud resources
  • Cannot access underlying servers
  • Cannot modify user's node

Getting Started as a Developerโ€‹

1. Get Testnet Accessโ€‹

# Request testnet developer account
curl -X POST https://testnet.self.app/developers/register \
-d '{"email": "dev@example.com", "project": "My App"}'

2. Install SDKโ€‹

npm install @selfchain/sdk

3. Build Your First Appโ€‹

import { SELFClient } from '@selfchain/sdk';

const client = new SELFClient({
appId: 'your-app-id',
environment: 'testnet'
});

// Your app interacts with authorized user instances

4. Test Locallyโ€‹

Use our testnet to develop without real users:

  • Get test user credentials
  • Simulate user interactions
  • Test permission flows
  • Validate privacy model

Architecture Detailsโ€‹

User Instance Componentsโ€‹

Each user's cloud instance includes:

User's Private Cloud Instance
โ”œโ”€โ”€ SELF Chain Node (Blockchain participation)
โ”œโ”€โ”€ Private LLM (AI assistant)
โ”œโ”€โ”€ OrbitDB (Decentralized database)
โ”œโ”€โ”€ IPFS Node (Distributed storage)
โ””โ”€โ”€ API Gateway (Secure access point)

Security Boundariesโ€‹

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ User A's Instance (Isolated) โ”‚
โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
โ”‚ โ”‚ Private LLM โ”‚ โ”‚ Storage โ”‚ โ”‚
โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
โšก No Connection โšก
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ User B's Instance (Isolated) โ”‚
โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
โ”‚ โ”‚ Private LLM โ”‚ โ”‚ Storage โ”‚ โ”‚
โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Developer Access Modelโ€‹

Your App โ†’ SELF SDK โ†’ User Authorization โ†’ User's Instance API
โ†“
Permission Granted
โ†“
Scoped Access Only

Summaryโ€‹

For Usersโ€‹

  • Sign up in SELF Super-App
  • Get automatic private cloud
  • Own your data and AI
  • Complete privacy

For Developersโ€‹

  • Build apps on top of user instances
  • Use SDK to interact with authorized users
  • Respect privacy and permissions
  • Focus on user experience, not infrastructure

Remember: SELF provisions and manages all infrastructure. Developers build experiences. Users own their digital lives.


Questions? Join our Developer Discord or check our Developer Guide